<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gbk" />
<title>上传图片</title>
</head>

<body>
<table cellpadding="0" cellspacing="1">
    <caption>文件上传</caption>
	<form name="upload" method="post" action="" enctype="multipart/form-data">
  <tr>
   <td height="30">
       <input type="file" name="uploadfile">
       <input type="hidden" name="oldfilepath">
       <input type="hidden" name="MAX_FILE_SIZE" value="1024000"> 
       <input type="submit" name="dosubmit" value=" 上传 ">
	</td>
   </tr>
   <tr>
     <td height="30"><span style="color:#FF0000">如果上传新图片，旧图片将被删除</span></td>
   </tr>
	</form>
</table>
<script language="javascript">
<!--
if(window.opener.theform.<?=$inputid?>.value!="")
{
	try{
		upload.oldfilepath.value = window.opener.theform.<?=$inputid?>.value;
	}catch(e){}
}
//-->
</script>
</body>
</html>
